Record List - List Box Table Lookup

Description

The Record List - List Box tab of the Table Lookups form contains two list boxes.

Object Properties Record List

Vendor Choices for Record List - List Box

The Field Properties Choices tab of the Record List - List Box displays the Vendor_Name field and stores the Vendor_No from the Vendor table. The records are sorted alphabetically by Vendor_Name.

Object Properties Record List Vendor Choices

Procedure

  1. Select the list box and right click.

  2. Click the Properties ... selection.

  3. Click the Choices tab.

  4. In the From Table field, select "vendor".

  5. In the Return value field, select "vendor_no". This is the field that the form will store.

    Object Properties Record List Vendor Fields
  6. Click the Add New Column to Record List button.

  7. Select "vendor_name" in the Field list.

  8. Change the column title to "Name" in the Header field.

  9. Click the OK button.

  10. Click the Add New Column to Record List button.

  11. Select "vendor_no" in the Field list.

  12. Change the column title to "Number" in the Header field.

Product Choices for Record List - List Box

The Field Properties Choices tab of the Record List - List Box displays the Product_Name field and stores the Product_No field from the Product table. The records are sorted alphabetically by Product_Name.

Object Properties Record List Product Choices

Procedure

  1. Select the list box and right click.

  2. Click the Properties ... selection.

  3. Click the Choices tab.

  4. In the From Table field, select "product".

  5. In the Return value field, select "product_no". This is the field that the form will store.

  6. Click the Add New Column to Record List button.

  7. Select "product_name" in the Field list.

  8. Change the column title to "Name" in the Header field.

  9. Click the OK button.

  10. Click the Add New Column to Record List button.

  11. Select "product_symbol" in the Field list.

  12. Change the column title to "Symbol" in the Header field.

    • Product Filter for Record List - List Box

      In addition, the Product_Name records are limited to those where Product_Vendor_No field equals Quote_Vendor_No_OP3. A change in the Quote_Vendor_No_OP3 field triggers a refresh of the Product list.

      Object Properties Record List Product Filter
  13. Check the Enable Filter Expression check box and click the Edit Filter Expression button.

  14. In the Field Expression (in target table) field, enter "Product_Vendor_No".

  15. In the Operator field, select "=".

  16. In the Field Expression (in current table) field, select "Quote_Vendor_No_Op3".

  17. In the Watch Expression field, select "Quote_Vendor_No_Op3".

  18. In the Display order field, select "product_name".

  19. Click the OK button to return to the Field Properties dialog box.

  20. Click the OK button to return to the Form Editor.

The Table Lookups sample database can be downloaded.

See Also